package model;

public class Case {

	//type de case, montagne, plaine ...
	private String type;
	
	//carte contenue par la case
	private Carte carte;
	
	//coordonnees
	private int x;
	private int y;
	
	//Boolean qui indique si la case est visible par le joueur courant
	private boolean visible;
	
	public Case(int x, int y) {
		
		this.carte=null;
		this.x=x;
		this.y=y;
		int i= (int) (Math.random()*10);
		
		switch (i) {
        case 0:  this.type="eau";
        		 break;
        case 1:  this.type="neige";
                 break;
        case 2:  this.type="foret";
                 break;
        case 3:  this.type="montagne";
                 break;
        default: this.type="plaine";
                 break;
		}
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}



	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Carte getCarte() {
		return carte;
	}

	public void setCarte(Carte carte) {
		this.carte = carte;
	}
	
}
